package com.luck.easyfoodbatch.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.luck.easyfoodbatch.R;

/**
 * author：luck
 * project：EasyFoodBatch
 * package：com.luck.easyfoodbatch.adapter
 * email：893855882@qq.com
 * data：16/9/29
 */
public class OrderDetailsAdapter extends RecyclerView.Adapter<OrderDetailsAdapter.ItemHolder> {
    private Context mContext;
    private int index = 0;

    public OrderDetailsAdapter(Context mContext, int index) {
        super();
        this.mContext = mContext;
        this.index = index;
    }


    @Override
    public OrderDetailsAdapter.ItemHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View rootView = LayoutInflater.from(parent.getContext()).inflate(R.layout.order_details_item, parent, false);
        return new ItemHolder(rootView);
    }


    @Override
    public void onBindViewHolder(final OrderDetailsAdapter.ItemHolder holder, final int position) {

    }

    @Override
    public int getItemCount() {
        return 2;
    }


    public class ItemHolder extends RecyclerView.ViewHolder {
        RecyclerView recyclerView;
        TextView tv_shop_name;

        public ItemHolder(View view) {
            super(view);
            recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
            tv_shop_name = (TextView) view.findViewById(R.id.tv_shop_name);
        }
    }

}
